package com.ruoyi.ufox.service.impl;

import com.ruoyi.ufox.domain.BisConnectionLog;
import com.ruoyi.ufox.mapper.BisConnectionLogMapper;
import com.ruoyi.ufox.service.IBisConnectionLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * 连接日志Service业务层处理
 * 
 * @author ufoxs
 * @date 2022-08-16
 */
@Service
public class BisConnectionLogServiceImpl implements IBisConnectionLogService
{
    @Autowired
    private BisConnectionLogMapper bisConnectionLogMapper;

    /**
     * 查询连接日志
     * 
     * @param logId 连接日志主键
     * @return 连接日志
     */
    @Override
    public BisConnectionLog selectBisConnectionLogByLogId(Long logId)
    {
        return bisConnectionLogMapper.selectBisConnectionLogByLogId(logId);
    }

    /**
     * 查询连接日志列表
     * 
     * @param bisConnectionLog 连接日志
     * @return 连接日志
     */
    @Override
    public List<BisConnectionLog> selectBisConnectionLogList(BisConnectionLog bisConnectionLog)
    {
        return bisConnectionLogMapper.selectBisConnectionLogList(bisConnectionLog);
    }

    /**
     * 新增连接日志
     * 
     * @param bisConnectionLog 连接日志
     * @return 结果
     */
    @Override
    public int insertBisConnectionLog(BisConnectionLog bisConnectionLog)
    {
        return bisConnectionLogMapper.insertBisConnectionLog(bisConnectionLog);
    }

    /**
     * 修改连接日志
     * 
     * @param bisConnectionLog 连接日志
     * @return 结果
     */
    @Override
    public int updateBisConnectionLog(BisConnectionLog bisConnectionLog)
    {
        return bisConnectionLogMapper.updateBisConnectionLog(bisConnectionLog);
    }

    /**
     * 批量删除连接日志
     * 
     * @param logIds 需要删除的连接日志主键
     * @return 结果
     */
    @Override
    public int deleteBisConnectionLogByLogIds(Long[] logIds)
    {
        return bisConnectionLogMapper.deleteBisConnectionLogByLogIds(logIds);
    }

    /**
     * 删除连接日志信息
     * 
     * @param logId 连接日志主键
     * @return 结果
     */
    @Override
    public int deleteBisConnectionLogByLogId(Long logId)
    {
        return bisConnectionLogMapper.deleteBisConnectionLogByLogId(logId);
    }
}
